<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>调和级数</title>
    </head>
    <body>
        <p id="out"></p>
        <script>
            let n = 0,sum = 0;
            while(sum<=12){
                ++n;
                sum += 1/n;
            }
            document.getElementById("out").innerHTML="调和级数大于12的最小n值为："+n;
        </script>
    </body>
</html>